<?
 session_start();
 require_once("core.php");

 get_all_variables();
 $db = dbconnect();

 $q = "SELECT *
       FROM `messages`
       WHERE id = ".$id;
 $rmsgs = mysql_query($q, $db) or die(mysql_error());
 $w = mysql_fetch_array($rmsgs);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/yahoo_reset.css" rel="stylesheet" type="text/css" />


<body>
 <h2>
  <span style="font-size: 24px;"><? if ($w['dest']!=-1) {echo "Message";}
  else {echo "Announcement";}; ?></span>
  <br/><br/><? echo $w['text']; ?></h2>
</body>
</html>
